package com.byit.Test.Mytest1.TestWait;

import com.byit.Test.wait.ThreadWait;

/**
 * @ClassName mainWait
 * @Description TODO
 * @Author lxp
 * @Date 2018/10/8 0008
 **/
public class mainWait {

    public static void main(String[] args) throws InterruptedException {
        Object a = new Object();
        Object b = new Object();
        Object c = new Object();

        MyThreadWait ta = new MyThreadWait("A", c, a);
        MyThreadWait tb = new MyThreadWait("B", a, b);
        MyThreadWait tc = new MyThreadWait("C", b, c);

        new Thread(ta).start();
        Thread.sleep(100);
        new Thread(tb).start();
        Thread.sleep(100);
        new Thread(tc).start();
        Thread.sleep(100);
    }

}
